<template>
  <div class="cell" @click="handle">
    <div class="left">{{ title }}</div>
    <div class="right">
      {{ desc }} <span class="iconfont iconjiantou1"></span>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    title: {
      type: String,
    },
    desc: {
      type: String,
    },
  },
  methods: {
    handle(e) {
      this.$emit('click', e);
    },
  },
};
</script>

<style lang="less" scoped>
.cell {
  height: 50px;
  margin: 0 10px 0 20px;
  padding: 0 4px 0 4px;

  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #dcdcdc;
  .left {
    font-size: 14px;
  }
  .right {
    font-size: 14px;
    color: #aaa;
    height: 50px;
    line-height: 50px;
    // background-color: red;
    padding-left: 35px;
  }
}
</style>